package cn.usian;

public class Xian {
    //私有化成员变量
  private static Xian xian=new Xian();

  private Xian(){

  }

    public static Xian getXian() {
      //返回实例
        System.out.println("饿汉式");
        return xian;
    }

    public static void main(String[] args) {
        getXian();
    }
}
